package org.csu.secondhand.api.service;

import org.csu.secondhand.api.entity.Dealing;

import java.util.List;

public interface DealingService {
    List<Dealing> getAllDealing();
    Dealing insertDealing(Dealing dealing);
    List<Dealing> searchDealing(String keyword);
    List<Dealing> getDealingByUser(String user);
    Dealing getDealingById(long id);
    Dealing deleteDealing(long id);
    Dealing editDealing(Dealing dealing);
}
